package cs575.wido.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import cs575.wido.User;
import cs575.wido.ui.UserAccountWindow;

public class UserAccountAction extends AbstractAction {
	private User user;
	
	public UserAccountAction(User user) {
		putValue(NAME, "User Account");
		this.user = user;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		user.fetch();
		UserAccountWindow window = new UserAccountWindow(); 
		window.setVisible(true);
	}

}
